﻿using System;
using System.ComponentModel.DataAnnotations;

namespace WebApiCoreDemo.Model
{
    public class LoginViewModel
    {
        [Required(AllowEmptyStrings = false, ErrorMessage = "用户名不能为空")]
        public string LoginName { get; set; }
        [Required(AllowEmptyStrings = false, ErrorMessage = "密码不能为空")]
        public string Password { get; set; }
        public DateTime Expiration { get; set; } = DateTime.Now.AddMinutes(60);
        public string Email { get; set; }
    }
}
